import math

n,s = eval(input("请输入几边形和它的边长"))
area = (n * s * s) / ( 4 * math.tan(math.pi/n))
print("它的面积为：",area)